<!DOCTYPE html>
<html lang="zh-CN"  xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="common/layout">
<head>
    <title>我的店铺</title>
</head>
<body>
<section layout:fragment="top_menu" style="text-align: right;padding-right: 20px">
    <a th:href="@{/admin/store/{id}(id=${store.id})}" >修改店铺</a>
</section>

<section layout:fragment="content">
    <div class="mystore" style="margin: 5px" th:object="${store}">
            <table>
                <tbody>
                <tr>
                    <td style="text-align: right">
                        店名
                    </td>
                    <td th:text="*{name}">
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        店家
                    </td>
                    <td th:text="*{owner}"></td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        简介
                    </td>
                    <td th:text="*{description}"></td>
                </tr>
                <tr>
                    <td style="text-align: right; ">
                        店铺Logo
                    </td>
                    <td>
                        <img th:if="*{logoUrl}" th:src="*{logoUrl}" width="30" height="30" style="border-radius:50%;">
                        <img th:unless="*{logoUrl}" src="/img/avatar.png" width="30" height="30" style="border-radius:50%;">
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</section>


<section layout:fragment="extra_scripts">

    <script th:inline="javascript">

    </script>
</section>

</body>

</html>
